package com.e2j.lib.vo;

import com.e2j.lib.*;

/**
 * 导表实体：角色星级
 * @author Generate By Excel2Json
 * @date 22-07-16 10:59:41
 * @version 56531e83-04b3-11ed-8391-8cc681189f10
 **/
public class LibStar extends LibItemBase implements ILibItem {

    
    /**
    * 主键
    **/
    private int id;
    
    /**
    * 角色
    **/
    private int cid;
    
    /**
    * 星级
    **/
    private int lv;
    
    /**
    * 生命成长率
    **/
    private float hp;
    
    /**
    * 力量成长率
    **/
    private float atk;
    
    /**
    * 智力成长率
    **/
    private float mag;
    
    /**
    * 技能
    **/
    private int skid;


    
    /**
    * 主键
    **/
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    
    /**
    * 角色
    **/
    public int getCid() { return cid; }
    public void setCid(int cid) { this.cid = cid; }
    
    /**
    * 星级
    **/
    public int getLv() { return lv; }
    public void setLv(int lv) { this.lv = lv; }
    
    /**
    * 生命成长率
    **/
    public float getHp() { return hp; }
    public void setHp(float hp) { this.hp = hp; }
    
    /**
    * 力量成长率
    **/
    public float getAtk() { return atk; }
    public void setAtk(float atk) { this.atk = atk; }
    
    /**
    * 智力成长率
    **/
    public float getMag() { return mag; }
    public void setMag(float mag) { this.mag = mag; }
    
    /**
    * 技能
    **/
    public int getSkid() { return skid; }
    public void setSkid(int skid) { this.skid = skid; }

    /**
     * 角色  关联：cid->LibCharacter.cid (实体)
     * @return
     */
    public LibCharacter getLibCharacter() {
        return getLib().characterMap(cid);
    }
    
    @Override
    public String toString() {
        return "LibStar(角色星级){" +
                "id=" + id + 
                ", cid=" + cid + 
                ", lv=" + lv + 
                ", hp=" + hp + 
                ", atk=" + atk + 
                ", mag=" + mag + 
                ", skid=" + skid + 
                '}';
    }
    

}